package cn.aifeix.lxyc.feign;

import cn.aifeix.lxyc.fallback.ShopServiceFallbackFactory;
import cn.aifeix.lxyc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "ShopService",value = "service-shop",path = "/shop"
        ,fallbackFactory = ShopServiceFallbackFactory.class)
public interface ShopService {
    @RequestMapping(value = "/list",method = RequestMethod.GET)
    JSONResult list();
}
